package com.bana.fvs.app.mvp.contract;

import android.app.Activity;

import com.bana.fvs.app.main.entity.UserInfoBean;
import com.bana.fvs.app.module.detaile.entity.CommonEntity;
import com.bana.fvs.app.mvp.model.BaseModel;
import com.bana.fvs.app.mvp.presenter.BasePresenter;
import com.bana.fvs.app.mvp.view.IBaseView;
import com.wei.commonlibrary.net.OkhttpRequest;

/**
 * Created by admin on 2018/02/26.
 * 登录
 */
public interface MainContract {

    abstract class AbsMainModel extends BaseModel {
        public abstract OkhttpRequest validate(String token);
    }

    abstract class AbsMainPresenter extends BasePresenter<AbsMainModel, IMainView> {
        public abstract void validate(Activity activity);
    }

    interface IMainView extends IBaseView<CommonEntity> {
        void onTokenRefresh(CommonEntity entity);
    }
}
